<?php

class DefaultAttributeBehavior extends CActiveRecordBehavior {
	
	public $map = array();
	
	public function beforeValidate($event) {
		$model = $this->owner;
		foreach($this->map as $k=>$v) {
			$model->setAttribute($k, $v);
		}
	}
	
}

?>